﻿#pragma once

#include <QWidget>
#include "json_data.h"
#include "positionsettingwid.h"

QT_BEGIN_NAMESPACE
namespace Ui { class PathPiontWid; };
QT_END_NAMESPACE

class PathPiontWid : public QWidget
{
	Q_OBJECT

public:
	PathPiontWid(QWidget *parent = nullptr);
	~PathPiontWid();
	void Init(const PathPointCfg& cfg);
	PathPointCfg GetCfg();

private slots:
	void on_comboBox_3_currentIndexChanged(int index);

private: 
	void InitRealiveCfg(const RelativePointCfg& cfg);
	RelativePointCfg GetRelativePointCfg();
private:
	Ui::PathPiontWid *ui;
	PositionSettingWid* m_fix = nullptr;
};
